#!/usr/bin/env python
# -*- coding:utf-8 -*-
# Create by zhang
# Create on 2022/6/27 13:26
from enum import IntEnum

from config.config import config


class SpiderType(IntEnum):
    xueqiu = 1
    xbrl_sse = 2
    report_pdf = 3


class DataType(IntEnum):
    json = 1
    mysql = 2

class DataSource:
    spider_type = SpiderType.report_pdf
    data_type = {"json": DataType.json, "mysql": DataType.mysql}[config.get("datasource", "data_type")]

